<template>
	<view class="content">
		<view class="policy-content">
			<view class="policy-item" v-for="item in policyList" :key="item.id">
				<!-- <view class="img"> -->
				<img :src="imageUrl+item.src" alt="" class="img">
				<!-- </view> -->
				<view class="policy-info">
					<view class="title">
						{{ item.title }}
					</view>
					<view class="time">
						{{ item.time }}
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				imageUrl: '',
				policyList: [{
						id: 1,
						src: "/company_auth/work1.png",
						title: "金塔县成功举办第五届“中国创翼”创业创新大赛全区选拔赛",
						time: " 2022-04-29"
					},
					{
						id: 2,
						src: "/company_auth/work2.png",
						title: "酒泉市“百千万”创业引领工程｜2023年新业态“创业新秀”选拔赛决赛圆满落幕",
						time: " 2023-04-13"
					}
				]
			}
		},
		onLoad() {
			this.imageUrl = this.globalConfig.imageUrl
		}
	}
</script>

<style lang="scss" scoped>
	.policy-content {
		width: 100%;
		height: 100%;
		padding: 30rpx;

		.policy-item {
			width: 100%;
			height: 250rpx;
			display: flex;
			background-color: #FFFFFF;
			border-radius: 40rpx;
			box-sizing: border-box;
			padding: 20rpx;

			.img {
				// height: 100%;
				// width: calc((100% - 5px)/2);
				width: 330rpx;
				// height: calc(100% - 40rpx);
				height: 205rpx;
				border-radius: 20rpx;
				background-color: #808080;
				// img{
				// 	width: 100%;
				// 	height: 100%;
				// 	border-radius: 20rpx;
				// }
			}

			.policy-info {
				width: calc((100% + 35rpx));
				height: 205rpx;
				margin-left: 20rpx;

				.title {
					font-size: 35rpx;
					line-height: 50rpx;
					display: -webkit-box;
					-webkit-box-orient: vertical;
					-webkit-line-clamp: 2;
					overflow: hidden;
				}

				.time {
					margin-top: 60rpx;
					color: #767676;
				}
			}
		}
	}
</style>